import java.util.Random;

public class Dice {
	int side;
	
	public Dice(){
		this.side = 6;
	}
	
	public Dice(int side){
		this.side = side;
	}

	public int roll(){
		int randomNr;
		Random r = new Random();
		randomNr = r.nextInt(side)+1;
		
		return randomNr;	
	}
}

